#include <stdio.h>
#include <string.h>

typedef struct {
    int a;
    int b;
    char *c;
    char d[10];
}SA_t;

int main(){
    SA_t s1={1,2,"123","456"};
    SA_t s2;
    memcpy(&s2, &s1, sizeof(SA_t));
    printf("s1=[%p],&s1=[%p],&s1.a=[%p],s2=[%p],&s2=[%p]\n", s1, &s1, &(s1.a),s2, &s2);
    printf("s2.a=[%d],s2.b=[%d],s2.c=[%s],s2.d=[%s]\n", s2.a, s2.b, s2.c, s2.d);

    return 0;
}